import React from 'react'
import { IndexRoute, Route } from 'react-router'
import App from './containers/App'
import MallMainPage from './containers/MallMainPage'
import TaskList from './containers/TaskList'
import ExchangeRecord from './containers/ExchangeRecord'
import GoodPage from './containers/GoodPage'
import ShippingInfoPage from './containers/ShippingInfoPage'

export default (
    <Route path="/" handler={App}>
        <IndexRoute component={MallMainPage}/>
        <Route path="/task_list" component={TaskList}/>
        <Route path="/exchange_record" component={ExchangeRecord}/>
        <Route path="/good_page/:listType" component={GoodPage}/>
        <Route path="/shipping_info_page/:good_id" component={ShippingInfoPage}/>
    </Route>
)
